package com.example.myproject.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 加载配置
 * 引入外部配置文件core.properties
 */
@Configuration
@EnableTransactionManagement
@EntityScan(basePackages = "com.example.myproject.entity")
@MapperScan("com.example.myproject.mapper")
@PropertySource("classpath:core.properties")
public class Config {
}
